#! /bin/bash

# 更新源

sudo yum upadte
sudo yum upgrade

## 版本管理器:git
sudo yum -y install git

## 简单终端ui的git客户端:lazygit
sudo yum -y install dnf
sudo dnf install 'dnf-command(copr)'
sudo dnf copr enable atim/lazygit -y
sudo dnf install lazygit


## 终端复用器:tmux
sudo yum -y install tmux

## 目录搜索工具fd
### gcc 编译版本 
#wget https://github.com/sharkdp/fd/releases/download/v7.4.0/fd-v7.4.0-x86_64-unknown-linux-gnu.tar.gz
#tar -zxvf fd-v7.4.0-x86_64-unknown-linux-gnu.tar.gz
#cd fd-v7.4.0-x86_64-unknown-linux-gnu
### musl libc 编译版本
wget https://github.com/sharkdp/fd/releases/download/v7.4.0/fd-v7.4.0-x86_64-unknown-linux-musl.tar.gz
tar -zxvf fd-v7.4.0-x86_64-unknown-linux-musl.tar.gz
cd fd-v7.4.0-x86_64-unknown-linux-musl

sudo cp ./fd /usr/local/bin/
sudo cp ./fd.1 /usr/local/share/man/man1/


## 文本搜索工具rg
sudo yum -y install ripgrep

## 文本搜索工具ack
sudo yum -y install ack

## 文本搜索工具 ag
sudo yum -y install the_silver_searcher

## 模糊搜索工具
git clone --depth 1 https://github.com/junegunn/fzf

~/.fzf/install

## vi风格终端文件管理器：ranger 
#注意：需要以来python3.6+
git clone https://github.com/ranger/ranger.git
sudo mv ranger /usr/local/
sudo ln -s /usr/local/ranger/ranger.py  /usr/bin/ranger


## vi风格终端文件管理器：vifm
sudo yum -y install vifm

## 终端文件管理器：nnn
sudo yum -y install nnn


# 参考资料
# centos7全局查找 fzf (Fuzzy finder) /终端美化zsh/ iftop 查看网络状态/cat高亮/htop/pip/axel(下载工具)
# https://blog.csdn.net/jiangbenchu/article/details/104677621
